package com.qidianit.mes.pro.controller;

import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.Workstation;
import com.qidianit.mes.pro.service.WorkStationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ Description:
 * @ Author:WuJingLei
 * @ Date: 2025/9/24 -17:03
 */
@RestController
@RequestMapping("/workStation")
public class WorkstationController {
    @Autowired
    private WorkStationService workStationService;

    @GetMapping("/page")
    public Result<List<Workstation>> pageList( Workstation workstation){
        return workStationService.queryList(workstation);
    }
}
